-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix colour rendering in Navigation overlay #36479
Conversation
Size Change: +77 B (0%) Total Size: 1.09 MB
ℹ️ View Unchanged
|
Thanks for the thorough testing!
I had to use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// If the responsive wrapper is present but overlay is not open, | ||
// overlay styles shouldn't apply. | ||
&:not(.is-menu-open.is-menu-open) { | ||
color: inherit !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The !important's feel appropriate enough for the way the feature works at the moment. It's possible in the future we could explore editing the contents of the modal in isolation (like template parts), at which point these would be revisited anyway.
* Fix colour rendering in Navigation overlay * Add overlay styles in the editor * Overlay styles shouldn't apply when overlay is closed. * Fix php lint errors.
Description
Fixes #36429.
Setting Submenu & overlay text and background wasn't having any effect on the Navigation overlay because the overlay colours aren't added to the Navigation block outer wrapper (unlike regular text and background colours). This PR adds the relevant overlay classnames and/or inline styles to the responsive wrapper so the overlay can render in the correct colours.
How has this been tested?
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).